-- msg_account_bind_result
-- Created by chengb Oct/24/2015
-- 通知玩家账号绑定结果

return function(lpc)
    local bindAccount = lpc.bind_account;
    local result      = lpc.result;

    trace("msg_account_bind_result", "账号(%s)绑定结果：%d", bindAccount, result);

    if result == ACCOUNT_BIND_OK then
        -- 成功了
        AccountM.setBindAccount(bindAccount);
    end

    EventMgr.fire(event.ACCOUNT_BIND_RESULT, { ["bindAccount"] = bindAccount, ["result"] = result});
end
